function ex_MultWLS
N=5;p=2;q=2;r=1;
P={};
ind=1:N;
for j=1:N,
    x=randn(1);
    u=0;
    w=randn(1);
    vars=[x,u,w];
    A=randn(1,p);
    B=randn(1,q);
    nb=floor(rand(1,N)*2);nb(j)=0;
    nbs=ind(find(nb));
    if length(nbs)==0,
        nbs=mod(j,N)+1;
    end;
    Gamma=randn(1,length(nbs));
    Gamma=Gamma/sum(Gamma);
    P{j}=newplayer('Vars',vars,'legend','b','A',A,'B',B,'Gamma',Gamma,'Neighbors',nbs,'step_func','MWLS_step_player');
end;
G=newgame(P,'axis',[-10 10 -10 10],'draw',2,'plot_components',[1],'pause','pause','min_r',0,'h',0.1);
G=simgame(G)
return
